import { execa } from "execa";

/**
 * 执行命令
 * @param {string} command — The program/script to execute.
 * @param {string[]} args — Arguments to pass to file on execution.
 * @param {*} options
 */
export async function execCommand(command, args) {
    try {
        await execa(command, args, { stdio: "inherit" });
    } catch (error) {
        console.log("error", error);
    }
}
